﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MethodWorx.CMS.Plugins.ViewManagement
{
    [Serializable]
    public class StaticView
    {
        public StaticView()
        {
            this.Pages = true;
            this.Ids = new Guid[] { };
        }

        [Required]
        public Guid Id { get; set; }
        public string Name { get; set; }
        public bool Pages { get; set; }
        public bool ContentItems
        {
            get { return !this.Pages; }
            set { this.Pages = !value; }
        }
        public Guid[] Ids { get; set; }
    }
}
